package com.atguigu.tingshu.live.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Configuration
public class WebSocketConfig {

    /**
     * 配置WebSocket服务器的端点导出器，作用：把webSocket服务的端点进行导出，供webSocket的客户端进行连接
     * 端点：连接地址
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter() ;
    }

}
